package com.ruibang.glass.produce.mapper;

import com.ruibang.glass.produce.domain.resp.MonitorRuleInfo;
import com.ruibang.glass.produce.domain.resp.MonitorRuleResp;
import com.ruibang.glass.produce.entity.MonitorRule;
import com.teaming.cloud.framework2.autoconfigure.mybatisplus.mapper.CommonMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: songJinKang
 * @CreateTime: 2023-11-20  19:28
 * @Description: TODO
 * @Version: 1.0
 */
@Mapper
public interface MonitorRuleMapper extends CommonMapper<MonitorRule> {
    List<MonitorRuleResp> getRuleByMonitorId(@Param("monitorIds") List<String> monitorIds);

    List<MonitorRuleInfo> getMonitorRuleInfoByMonitorId(@Param("monitorId") String monitorId);
}
